package main

import (
	"SSO/crons"
	"SSO/routers"
	"SSO/sync"
	"SSO/tools"
	"github.com/gin-gonic/gin"
)

func main() {

	crons.Register()
	sync.User{}.SyncUser()
	r := gin.Default()

	//r.Static("/static", "./static")
	r.LoadHTMLGlob("views/**/*")

	routers.Register(r)

	_ = r.Run(":8080")


	defer tools.Close();
}
